package com.situ.mall.web.controller;

import com.situ.mall.common.service.IOrderAddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.*;

@Controller
@RequestMapping("/")
public class SuccessController {

    @Autowired
    private IOrderAddressService orderAddressService;

    @GetMapping("/success")
    public String page(Model model){

       model.addAttribute("address",orderAddressService.selectAddress());
        return "success";
    }




}
